package com.ddfeiyu.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class Log implements Serializable {

    public final static String STATUS_SUCCESS = "成功";
    public final static String STATUS_FAIL = "失败";
    public final static String STATUS_WARN = "警告";

    /**
     * 业务id：唯一
     */
    private String businessId;
    /**
     * 日志链路id
     */
    private String traceId;

    private String clazzName ;

    private String methodName ;

    private String parameterTypes;
    /**
     * 日志时间
     */
    private String logTime;

    /**
     * 应用
     */
    private String app;

    private String host;
    /**
     * 功能
     */
    private String description;

    /**
     * 状态
     */
    private String status ;

    /**
     * 失败原因
     */
    private String errorMsg ;
    /**
     * 入参
     */
    private String arguments;
    /**
     * 执行耗时
     */
    private Long elapsedTime;



    @Override
    public String toString() {
        return "Log{" +
                ", businessId='" + businessId + '\'' +
                ", traceId='" + traceId + '\'' +
                ", clazzName='" + clazzName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", logTime='" + logTime + '\'' +
                ", app='" + app + '\'' +
                ", host='" + host + '\'' +
                ", description='" + description + '\'' +
                ", status='" + status + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", arguments='" + arguments + '\'' +
                ", elapsedTime=" + elapsedTime +
                '}';
    }
}
